package com.cet.designpatterns.uml.aggregation;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-08-30 17:49
 **/
public class Computer {
    //以下电脑组件都可以与主机分离
    private Mouse mouse;
    private Monitor monitor;
    private Keyboard keyboard;

    public void setMouse(Mouse mouse) {
        this.mouse = mouse;
    }

    public void setMonitor(Monitor monitor) {
        this.monitor = monitor;
    }

    public void setKeyboard(Keyboard keyboard) {
        this.keyboard = keyboard;
    }
}
